<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=0.5, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="pulgins/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="stylesheets/reset.css">
    <link rel="stylesheet" href="pulgins/jquery-sdpagination.js/dist/sdpagination.min.css">
    <link rel="stylesheet" href="stylesheets/index.css?20180210">
    <link href="pulgins/date_pulgins/daterangepicker.css" rel="stylesheet" type="text/css">
    <script src="pulgins/jquery/jquery-3.1.0.min.js"></script>
    <script src="pulgins/jqprint/jquery.jqprint-0.3.js"></script>
    <script src="pulgins/jqprint/jquery-migrate-1.2.1.min.js"></script>
    <script src="pulgins/jquery-sdpagination.js/dist/jquery-sdpagination.min.js"></script>
    <script src="pulgins/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="pulgins/date_pulgins/moment.min.js"></script>
    <script type="text/javascript" src="pulgins/date_pulgins/daterangepicker.js"></script>
    <script src="javascripts/public.js?20180210"></script>
    <script src="javascripts/repertory_admin.js?20180210"></script>
    <title>铭材库存管理</title>
</head>
<body>
<div id="all_wrap_">
    <div class="content">
        <div class="content_left">
            <img src="images/logo.png" alt="">
            <ul></ul>
        </div>
        <div class="content_right">
            <div class="right-top">
                <b class="glyphicon glyphicon-resize-small"></b>
                <div>
                    <img src="images/logo.png" alt="">
                    <p id="user_name"></p>
                    <b class="glyphicon glyphicon-chevron-down"></b>
                    <div id="exit" title="点击后退出登录">
                        <span>退出</span>
                        <b   class="glyphicon glyphicon-log-out"></b>
                    </div>
                </div>
            </div>
            <!--主要部分-->
            <div class="supervise">
                <div class="container-fluid">
                    <div class="supervise_header">
                        <div class="row">
                            <h2 class="col-xs-4 col-xs-offset-1 col-sm-5 col-sm-offset-0 col-lg-4 col-lg-offset-1  col-xs-offset-1">库存管理操作</h2>
                            <div style="margin-top:10px;" class="col-xs-6 col-sm-7  col-lg-6">
                                 <button id="print_repertory" class="btn btn-default fr">导出excel</button>
                                 <button style="margin-right:30px;" id="record_btn" class="btn btn-default fr">记录查看</button>
                            </div>
                        </div>
                        <div class="row">
                            <div style="margin-top:10px;"
                                 class="col-sm-3 col-sm-offset-0 col-lg-2 col-lg-offset-1   col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <span class="input-group-addon">一级</span>
                                    <select class="form-control" name="" id="select1">
                                    </select>
                                </div>
                            </div>
                            <div style="margin-top:10px;"
                                 class="col-sm-3 col-sm-offset-0 col-lg-2 col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <span class="input-group-addon">二级</span>
                                    <select class="form-control" name="" id="select2">
                                    </select>
                                </div>

                            </div>
                            <div style="margin-top:10px;"
                                 class="col-sm-3 col-sm-offset-0 col-lg-2 col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <span class="input-group-addon">三级</span>
                                    <select class="form-control" name="" id="select3">
                                    </select>
                                </div>

                            </div>
                            <div style="margin-top:10px;"
                                 class="col-sm-3  col-sm-offset-0 col-lg-3 col-lg-offset-1 col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <form action="" id="search_kucun_form">
                                        <input type="text" class="form-control" id="search" placeholder="请输入物品编号 或 名称">
                                    </form>

                                    <span style="position: relative;top: 0;  cursor: pointer;"
                                          class="glyphicon glyphicon-search input-group-addon btn_hover" id="search_btn">搜索</span>
                                </div>

                            </div>
                        </div>
                        <div class="row">
                            <div style="margin-top:10px;"
                                 class="col-sm-3  col-sm-offset-0  col-xs-10 col-xs-offset-1 col-lg-offset-1">
                                <div class="input-group">
                                    <span class="input-group-addon">自营选择</span>
                                    <select class="form-control" name="" id="isAutotrophy">
                                        <option value="">全部</option>
                                        <option value="0">自营</option>
                                        <option value="1">第三方</option>
                                    </select>
                                </div>
                            </div>
                            <div style="margin-top:10px;"
                                 class="col-sm-3 col-sm-offset-0  col-xs-10 col-xs-offset-1">
                                <div class="input-group">
                                    <span class="input-group-addon">供应商</span>
                                    <select class="form-control" name="" id="seller">
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="supervise-body">
                        <div class="row">
                            <div class="col-xs-12 col-xs-offset-0 col-lg-offset-1 col-lg-10">
                                <div class="table-responsive table_wrap"
                                     style="border-bottom: 1px solid #eee;padding-bottom: 10px;display: none">
                                    <table id="linshi_table" style="margin-top: 30px;"
                                           class="table-striped table table-bordered">
                                    </table>
                                    <p style="margin-top:10px;">
                                        <button id="linshi_table_cancle" class="btn btn-primary btn-block">取消</button>
                                    </p>
                                </div>
                                <div class="table-responsive" style="margin-top:20px;">
                                    <table id="repertory_table" class="table text-center table-bordered">
                                    </table>
                                </div>

                            </div>

                        </div>
                        <div class="row" style="margin-top:20px;">
                            <div class="col-xs-10 col-xs-offset-1">
                                <div id="page"></div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <!--入库-->
            <div class="set_shangpin" id="repertory_inbound" style="display:none;">
                <div class="set_shangpin_main">
                    <div class="set_goods">
                        <div class="container-fluid">
                            <div class="add_goods_body">
                                <div class="row" style="margin-top: 0px">
                                    <div class="col-xs-10 col-xs-offset-1" style="font-size: 15px;">
                                        请填写入库信息
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">商品编号</span>
                                            <input type="text" id="inbound_number" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">商品名称</span>
                                            <input type="text" id="inbound_name" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">原有库存</span>
                                            <input type="text" id="inbound_y_n" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">入库数量</span>
                                            <input type="number" placeholder="请输入入库的数量" id="inbound_n_n" class="form-control input_is">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">进货单价</span>
                                            <input type="number" placeholder="请输入进货单价" id="inbound_price" class="form-control input_is">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon" style="min-width: 80px;"> 供 应 商 </span>
                                            <select name="" id="inbound_supplier" class="form-control input_is"></select>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <p style="margin-bottom:10px">备注</p>
                                        <textarea name="" id="inbound_mark" placeholder="请填写备注" cols="30" rows="4" class="form-control input_is"></textarea>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <b class="col-xs-5 btn btn-warning cancle_set" data-toggle="modal"
                                           data-target="#myModal">取消</b><span
                                            class="col-xs-5 btn btn-danger col-xs-offset-2 add" data-toggle="modal"
                                            data-target="#myModal">确认入库</span>
                                    </div>
                                </div>

                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--出库-->
            <div class="set_shangpin" id="repertory_outbound" style="display:none;">
                <div class="set_shangpin_main">
                    <div class="set_goods">
                        <div class="container-fluid">
                            <div class="add_goods_body">
                                <div class="row" style="margin-top: 0px">
                                    <div class="col-xs-10 col-xs-offset-1" style="font-size: 15px;">
                                        请填写出库信息
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">商品编号</span>
                                            <input type="text" id="outbound_number" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">商品名称</span>
                                            <input type="text" id="outbound_name" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">原有库存</span>
                                            <input type="text" id="outbound_y_n" class="form-control" disabled>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon">出库数量</span>
                                            <input type="number" placeholder="请输入出库的数量" id="outbound_n_n" class="form-control input_is">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="input-group">
                                            <span class="input-group-addon" style="min-width: 80px;">收 货 人</span>
                                            <input type="text" id="outbound_consignee" class="input_is form-control">
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <p style="margin-bottom:10px">备注</p>
                                        <textarea name="" placeholder="请填写备注" id="outbound_mark" cols="30" rows="4" class="form-control input_is"></textarea>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <b class="col-xs-5 btn btn-warning cancle_set" data-toggle="modal"
                                           data-target="#myModal">取消</b><span
                                            class="col-xs-5 btn btn-danger col-xs-offset-2 add" data-toggle="modal"
                                            data-target="#myModal">确认出库</span>
                                    </div>
                                </div>

                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--历史table-->
            <div class="set_shangpin" id="repertory_table_history">
                <div class="set_shangpin_main">
                    <div class="set_goods">
                        <div class="container-fluid">
                            <div class="add_goods_body">
                                <button type="button" class="close" id="close_table_history" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <div class="row" style="margin-top: 0px">
                                    <div class="col-xs-10 col-xs-offset-1">

                                        <table id="table_history" class="table">
                                            <thead>
                                            <tr>
                                                <th>名称</th>
                                                <th>入库时间</th>
                                                <th>入库数量</th>
                                                <th>备注</th>
                                            </tr>
                                            </thead>
                                            <tbody >
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div id="page_inbound"></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
            <!--记录-->
            <div class="set_shangpin" id="repertory_record">
                <div class="set_shangpin_main">
                    <div class="set_goods">
                        <div class="container-fluid">
                            <button type="button" class="close" id="close_record" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                            <div class="add_goods_header">
                                <div class="row">
                                    <h2 class="col-sm-4 col-sm-offset-1 col-xs-10 col-xs-offset-1">库存记录</h2>
                                </div>

                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div class="row">
                                            <div style="margin-top:10px;" class="col-sm-4 col-sm-offset-0 col-xs-10 col-xs-offset-1">
                                                <div class="input-group">
                                                    <span class="input-group-addon">类型</span>
                                                    <select class="form-control" name="" id="bound_type">
                                                        <option value="0">入库</option>
                                                        <option value="1">出库</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div style="margin-top:10px; display: none" id="outbound_type_wrap" class="col-sm-3  col-sm-offset-0 col-xs-10 col-xs-offset-1">
                                                <div class="input-group">
                                                    <span class="input-group-addon">出库类型</span>
                                                    <select class="form-control" name="" id="outbound_type">
                                                        <option value="">全部</option>
                                                        <option value="0">自动</option>
                                                        <option value="1">手动</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div style="margin-top:10px;"
                                                 class="col-sm-5 col-sm-offset-0 col-xs-10 col-xs-offset-1 fr">
                                                <div class="input-group ">
                                <span id="input_time_btn" class="input-group-addon glyphicon glyphicon-calendar"
                                      style="top:0;cursor: pointer;"></span>

                                                    <input type="text" id="input_time" class="form-control">


                                                    <span class="input-group-addon" id="search_time" style="cursor: pointer;">搜索</span>
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                </div>
                                <div class="row">
                                    <div style="margin-top:10px;"
                                         class="col-xs-10 col-xs-offset-1">
                                        <button id="record_all_btn" class="btn btn-default fr">导出excel</button>
                                    </div>
                                </div>
                            </div>
                            <div class="add_goods_body">
                                <div class="row" style="margin-top: 0px">
                                    <div class="col-xs-10 col-xs-offset-1">

                                        <table id="add_taocan_table" class="table">
                                        </table>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-xs-10 col-xs-offset-1">
                                        <div id="page1"></div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!--提示<&ndash;&gt;-->
<div class="hint">
    <span> 商品名称</span>
</div>
<!--提示确认-->
<div class="modal" id="modal_wrap" aria-labelledby="myModalLabel" tabindex="-1" role="dialog">
    <div class="modal-dialog" style="top: 20%;" role="document">
        <div class="modal-content">
            <div style="font-size: 20px;" class="modal-header">
                <h4 class="modal-title">提示</h4>
            </div>
            <div style="font-size: 20px;" class="modal-body">
                <p>确定要删除吗？</p>
            </div>
            <div class="modal-footer">
                <button type="button" id="modal_close" class="btn btn-default">取消</button>
                <button type="button" class="btn btn-primary" id="confirm">确定</button>
            </div>
        </div>
    </div>
</div>
</body>
</html>